package com.avalon.erp.addon.estate.service;

import com.avalon.core.field.Field;
import com.avalon.core.field.Fields;
import com.avalon.core.model.SelectionHashMap;
import com.avalon.core.service.AbstractService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @author lwlianghehe@gmail.com
 * @date 2025/6/29
 */

@Service
@Slf4j
public class EstatePropertyOfferService extends AbstractService {
    @Override
    public String getServiceName() {
        return "estate.property.offer";
    }

    @Override
    public String getLabel() {
        return "房地产报价";
    }

    public Field propertyId = Fields.createMany2one("房屋", "estate.property");
    public Field price = Fields.createBigDecimal("价格");
    public Field partner = Fields.createMany2one("出价人", "base.user");
    public Field status = Fields.createSelection("状态", new SelectionHashMap() {{
        put("Accepted", "已接受");
        put("Refused", "已拒绝");
    }});
}
